/** 
 * @date 06/05/2013
 * @author Renet_Pourriau
 * @version 1.0
 */

package ressource;

/**
 * This class represent resource type
 */
public class TypeC {
	
	private EnumTypeLibelle libelle;
	
	private String precisionType;
	
	/**
	 * this is the constructor of resource type
	 * @param libelle
	 * @param precisionType
	 */
	public TypeC (EnumTypeLibelle libelle, String precisionType) {
		this.setLibelle(libelle);
		this.setPrecisionType(precisionType);
	}

	/**
	 * @return the libelle
	 */
	public EnumTypeLibelle getLibelle() {
		return libelle;
	}

	/**
	 * @param libelle the libelle to set
	 */
	public void setLibelle(EnumTypeLibelle libelle) {
		this.libelle = libelle;
	}

	/**
	 * @return the precisionType
	 */
	public String getPrecisionType() {
		return precisionType;
	}

	/**
	 * @param precisionType the precisionType to set
	 */
	public void setPrecisionType(String precisionType) {
		this.precisionType = precisionType;
	}
	
	/**
	 * @return String representing resource type
	 */
	public String getType() {
		return "Type : " + this.getLibelle() + "\n" + "Précision sur la ressource : " + this.getPrecisionType();
	}
	
}